from fastapi import APIRouter
from fastapi.responses import PlainTextResponse
from loguru import logger


router = APIRouter(tags=['Web'])
module_name = 'Web'

__all__ = (router)


@router.get("/")
async def ping():
    logger.debug('pong')
    logger.info('pong')
    logger.warning('pong')
    logger.error('pong')
    logger.success('pong')
    return PlainTextResponse('pong')
